home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Technology Seed / Jan. '98 ATS.toast / FireWire 1.1 DDK DR1 / Source / VDig / MakeFile < prev   
Encoding:
Makefile  |  1997-06-10  |  5.6 KB  |  192 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        MakeFile
  3. #
  4. #    Contains:    Build rules for VDig sample code.
  5. #
  6. #    Written by:    Erik Staats
  7. #
  8. #    Copyright:    © 1996-1997 by Apple Computer, Inc., all rights reserved.
  9. #
  10. #    Change History (most recent first):
  11. #
  12. #      <FW30>     5/29/97    GG        Bumped version to 1.0.1a4.
  13. #      <FW29>     5/16/97    GG        Bumped FireWire version to 1.01a3.
  14. #      <FW28>     4/29/97    GG        Bumped version to 1.0.1a2.
  15. #      <FW27>     4/10/97    GG        Bumped version to 1.0.1d1.
  16. #      <FW26>     3/27/97    GG        Bumped version to 1.0 GM.
  17. #      <FW25>     3/19/97    GG        Bumped version to 1.0b3.
  18. #      <FW24>     3/12/97    GG        Bumped version to 1.0b2.
  19. #      <FW23>     2/19/97    GG        Bumped version to 1.0a3.
  20. #      <FW22>     2/11/97    GG        Bumped copyright to 1997.
  21. #      <FW21>     2/11/97    GG        Bumped version to 1.0a2.
  22. #      <FW20>      2/4/97    GG        Bumped version to 1.0d24.
  23. #      <FW19>     1/28/97    GG        Bumped version to 1.0d23.
  24. #      <FW18>     1/21/97    GG        Bumped version to 1.0d22.
  25. #      <FW17>      1/2/97    GG        Bumped Version to 1.0d21.
  26. #      <FW16>    12/20/96    GG        Bumped Version to 1.0d20.
  27. #      <FW15>     12/6/96    GG        Bumped version to 1.0d19.
  28. #      <FW14>    11/27/96    ES        Removed links to DevNLib.
  29. #      <FW13>    11/14/96    GG        Bumped version to 1.0d18.
  30. #      <FW12>    10/31/96    ES        Bumped version to 1.0d17.
  31. #      <FW11>    10/16/96    ES        Bumped version to 1.0d16.
  32. #      <FW10>     10/2/96    ES        Bumped version to 1.0d15.
  33. #       <FW9>     9/12/96    ES        Bumped version to 1.0d14.
  34. #       <FW8>     8/26/96    ES        Changed to use MrC and SC. This MakeFile will now only work with
  35. #                                    ETO #20 and forward.
  36. #       <FW7>     7/11/96    ES        Bumped version to 1.0d13.
  37. #       <FW6>     7/11/96    ES        Bumped version to 1.0d12.
  38. #       <FW5>     6/24/96    ES        Bumped version to 1.0d11.
  39. #       <FW4>     6/20/96    ES        Added some defs so we can do test builds using the MrC compiler.
  40. #       <FW3>     6/20/96    ES        Changed FWCCMDriverRootDir to VDigRootDir.
  41. #       <FW2>     6/20/96    ES        Filled in contains and written by fields.
  42. #       <FW1>     6/20/96    ES        first checked in
  43. #
  44. #
  45.  
  46. ################################################################################
  47. #
  48. # Define some directories
  49. #
  50.  
  51. VDigRootDir                    =    :
  52.  
  53. FWSampleDir                    =    {VDigRootDir}::
  54.  
  55. SysInterfacesDir            =    {FWSampleDir}Interfaces:
  56. FWCCMInterfacesDir            =    {VDigRootDir}Interfaces:
  57.  
  58. SysLibrariesDir                =    {FWSampleDir}Libraries:
  59. FWCCMLibrariesDir            =    {VDigRootDir}Libraries:
  60.  
  61. FWCCMDriverSourceDir        =    {VDigRootDir}FWCCMDriver:
  62.  
  63. BuildResultsDir                =    {FWSampleDir}BuildResults:
  64. ObjectsDir                    =    {BuildResultsDir}Objects:
  65. ExtensionsDir                =    {BuildResultsDir}Extensions:
  66.  
  67. ################################################################################
  68. #
  69. # Define version info
  70. #
  71.  
  72. FWVersion                    =    1
  73. FWRevision                    =    0
  74. FWBuildStage                =    alpha
  75. FWBuildNumber                =    4
  76. FWShortVersionString        =    '"1.0.1a4"'
  77. FWLongVersionString            =    '"1.0.1a4, © 1995-97 Apple Computer, Inc."'
  78.  
  79.  
  80. ################################################################################
  81. #
  82. # Define stuff for 68K compilation
  83. #
  84.  
  85. C68KOptions                    =    -d ccompile                                    ∂
  86.                                 -b                                            ∂
  87.                                 -r                                            ∂
  88.                                 -i "{SysInterfaces}"                        ∂
  89.                                 -i "{CIncludes}"                            ∂
  90.                                 -mc68020
  91.  
  92. Asm68K                        =    Asm
  93.  
  94. C68K                        =    SC
  95.  
  96. Link68K                        =    Link
  97.  
  98.  
  99. ################################################################################
  100. #
  101. # Define stuff for PowerPC compilation
  102. #
  103.  
  104. MrCOptions                    =    -opt speed                                    ∂
  105.                                 -w 2,7,35                                    ∂
  106.                                 -d TRUE=1                                    ∂
  107.                                 -d FALSE=0                                    ∂
  108.                                 -i "{SysInterfacesDir}"                        ∂
  109.                                 -i "{FWCCMInterfacesDir}"                    ∂
  110.                                 -i "{CIncludes}"
  111.  
  112. CPPCOptions                    =    {MrCOptions}
  113.  
  114. AsmPPC                        =    PPCAsm
  115.  
  116. AsmPPCOptions                =    -dialect PowerPC                            ∂
  117.                                 -o {Targ}
  118.  
  119. CPPC                        =    MrC
  120.  
  121. LinkPPC                        =    PPCLink
  122.  
  123.  
  124. ################################################################################
  125. #
  126. # Define stuff for rez
  127. #
  128.  
  129. RezOptions                    =    -d FWVersion={FWVersion}                    ∂
  130.                                 -d FWRevision={FWRevision}                    ∂
  131.                                 -d FWBuildStage={FWBuildStage}                ∂
  132.                                 -d FWBuildNumber={FWBuildNumber}            ∂
  133.                                 -d FWShortVersionString={FWShortVersionString}    ∂
  134.                                 -d FWLongVersionString={FWLongVersionString}
  135.  
  136.  
  137. ################################################################################
  138. #
  139. # FireWire CCM driver
  140. #
  141.  
  142. "{ObjectsDir}FWCCMDriver.c.o"    ƒ                                            ∂
  143.                             "{FWCCMDriverSourceDir}FWCCMDriver.c"            ∂
  144.                             "{FWCCMDriverSourceDir}FWCCMDriver.h"
  145.     {CPPC}                                                                    ∂
  146.         "{FWCCMDriverSourceDir}FWCCMDriver.c"                                 ∂
  147.         -i "{FWCCMDriverSourceDir}"                                            ∂
  148.         {CPPCOptions}                                                        ∂
  149.         -o {Targ}
  150.  
  151. "{ExtensionsDir}FWCCMDriver"    ƒƒ                                            ∂
  152.                             "{ObjectsDir}FWCCMDriver.c.o"                    ∂
  153.                             "{FWCCMDriverSourceDir}FWCCMDriver.exp"
  154.     {LinkPPC}                                                                ∂
  155.         -t 'ndrv'                                                            ∂
  156.         -c 'fw  '                                                            ∂
  157.         -xm sharedlibrary                                                    ∂
  158.         -w                                                                     ∂
  159.         -@export "{FWCCMDriverSourceDir}FWCCMDriver.exp"                    ∂
  160.         -main ComponentInterface                                            ∂
  161.         -term FWCCMTerminate                                                ∂
  162.         "{ObjectsDir}FWCCMDriver.c.o"                                        ∂
  163.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  164.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  165.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  166.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  167.         "{SysLibrariesDir}PCILib"                                            ∂
  168.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  169.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  170.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  171.         -librename StdCLib.xcoff=StdCLib                                    ∂
  172.          -o {Targ}
  173.  
  174. "{ExtensionsDir}FWCCMDriver"    ƒƒ                                            ∂
  175.                             "{ObjectsDir}FWCCMDriver.c.o"                    ∂
  176.                             "{FWCCMDriverSourceDir}FWCCMDriver.exp"            ∂
  177.                             "{FWCCMDriverSourceDir}FWCCMDriver.r"            ∂
  178.                             "{VDigRootDir}MakeFile"
  179.     Rez                                                                        ∂
  180.         {RezOptions}                                                        ∂
  181.         "{FWCCMDriverSourceDir}FWCCMDriver.r"                                ∂
  182.         -a                                                                    ∂
  183.         -o {Targ}
  184.  
  185.  
  186. FWCCMDriver    ƒ                                                                ∂
  187.                         "{ExtensionsDir}FWCCMDriver"
  188.  
  189.  
  190. VDig    ƒ                                                                    ∂
  191.                         FWCCMDriver
  192.